import request from "../utils/request"
// 获取banner和分类
export const getIndex = () => request.get('/index/index')
// 获取热门
export const getHot = () => request.get('/index/hot')
// 获取最新
export const getNew = (obj) => request.get('/index/new', {
  params: {
    page: obj.page || 1,
    limit: obj.limit || 10
  }
})